//
//  ZYVisitorController.m
//  VeiBo
//
//  Created by apple on 16/12/3.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "ZYVisitorController.h"

@interface ZYVisitorController ()

@end

@implementation ZYVisitorController{
 // BOOL属性判断是否登录
    BOOL _isLogin;
}

- (void)loadView{
    
    if (_isLogin) {
        
        [super loadView];
    }else{
        
        // 代表没有登录
        [self setupUI];
    }
    
}

- (void)setupUI{
    
    UIView* visitorView = [[UIView alloc] init];
    visitorView.backgroundColor = [UIColor colorWithRed:((float)arc4random_uniform(256) / 255.0) green:((float)arc4random_uniform(256) / 255.0) blue:((float)arc4random_uniform(256) / 255.0) alpha:1.0];
    self.view = visitorView;
}

- (void)viewDidLoad {
    [super viewDidLoad];

}


@end
